package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.Supplier;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface SupplierRepository extends JpaRepository<Supplier,Long> {

    Page<Supplier> findSuppliersByCvenname(String cvenname, Pageable pageable);

    Supplier findFirstByIdIsAfter(Long id);

    Supplier findFirstByIdBeforeOrderByIdDesc(Long id);

    Supplier findFirstByOrderById();

    Supplier findFirstByOrderByIdDesc();

    Supplier findSupplierByCvencode(String cvencode);

}
